package com.katze.boot;

import com.katze.common.config.DruidConfiguration;
import com.katze.common.config.MybatisPlusConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableScheduling
@SpringBootApplication
@EnableTransactionManagement
@MapperScan(value = {"com.katze.boot.*.dao", "com.katze.boot.*.*.dao"})
@ImportAutoConfiguration({DruidConfiguration.class, MybatisPlusConfiguration.class})
public class AdminApplication {

    public static void main(String[] args) {
        SpringApplicationBuilder applicationBuilder = new SpringApplicationBuilder(AdminApplication.class);
        applicationBuilder.run(args);
    }
}
